package com.hsjk.szwj.module.train.mq.producer;

import com.hsjk.szwj.framework.mq.core.RedisMQTemplate;
import com.hsjk.szwj.module.train.dal.dataobject.mq.OrderFailureTimeMQ;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/11/22 22:48
 **/
@Slf4j
@Component
public class OrderFailureTimeProducer {
    @Resource
    private RedisMQTemplate redisMQTemplate;


    public void sendMessage(OrderFailureTimeMQ mq) {
        redisMQTemplate.send(mq);
    }
}
